package cn.starrysky.hrm.client;

import cn.starrysky.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "system-service",fallbackFactory = SystemClientFallBackFactory.class)
@RequestMapping("/employee")
public interface SystemClient {

    @PostMapping("/getUerContext")
    AjaxResult getUserContext(@RequestBody Long id);
}
